﻿/**
 * Copyright © TnT-VNGroup 2011
 * PROJECT:   SmartCollector
 * $HeadURL: http://smartcollector.googlecode.com/svn/branches/Srcs/SmartCollector.HtmlParser/Utilities/MyExtension.cs $
 * $Author: chithanh12@gmail.com $
 * $Date: 2011-04-20 18:46:52 +0000 (Wed, 20 Apr 2011) $
 * $Rev: 94 $
 **/
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

namespace HtmlParser
{
    public static class MyExtension
    {
        public static string ToUpperCamel(this string source)
        {
            if (string.IsNullOrEmpty(source))
            {
                return string.Empty;
            }
            return char.ToUpper(source[0]) + source.Substring(1).ToLower();
        }

        public static bool IsInternetLink(this string str)
        {
            return str.StartsWith("http://") ||
                str.StartsWith("https://");
        }
    }
}
